#pragma once
#include < windows.h >  
extern "C" {
	__declspec(dllexport)
		void OnRegisterFunc(
			void (CALLBACK *stateChangeFunc)(int clientID, int code),
			void (CALLBACK *readCallBackFunc)(int clientID, int len));
	__declspec(dllexport)
	bool OnStartFunc(char * ip, int port,bool isServer);
	__declspec(dllexport)
	bool OnStopFunc();
	__declspec(dllexport)
	bool OnSendFunc(int id,const char * ip, int len, bool isServer);
	__declspec(dllexport)
	int OnReadFunc(int id, char * src, int len);
}
